<script>
export default {
    onLaunch: function () {
        const userInfo = uni.getStorageSync('userLoginInfo') ? JSON.parse(uni.getStorageSync('userLoginInfo')) : null;
        if (!userInfo || !userInfo.access_token) {
            uni.redirectTo({
                url: '/pages_user/Login_Register/Login_Register'
            });
        }
    },
    onShow: function () {
        console.log('App Show');
    },
    onHide: function () {
        console.log('App Hide');
    }
};
</script>

<style lang="scss">
/*每个页面公共css */
view,
swiper,
swiper-item {
    font-family: PingFang SC;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

::v-deep .topBox .uni-stat__select {
    height: 100%;
    .uni-stat-box {
        background-color: transparent;
    }
    .uni-select {
        height: 100%;
        padding: 12rpx 24rpx;
    }
    .uni-select__input-box {
        height: 100%;
    }

    .uni-select__input-placeholder,
    .uni-select__input-text {
        line-height: 48rpx;
        font-size: 32rpx;
        color: #333333;
    }
}
</style>
